package com.design.mode.singleton;

/**
 * @ClassName Client
 * @Description TODO
 * @Author xiongchao
 * @Date 2020/9/28 11:16
 **/
public class Client {

    public static void main(String[] args) {
        LazySingleton lazySingleton = LazySingleton.getInstance();
        LazySingleton lazySingleton1 = LazySingleton.getInstance();

        if(lazySingleton.getName().equals(lazySingleton1.getName())){
            System.out.println("创建的是同一个对象");
        }

    }
}
